// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 设备联动触发记录 GET /api/device/linkage/record */
export async function queryDeviceLinkageRecord(
  params: {
    // query
    /** 当前的页码 */
    current?: number;
    /** 页面的容量 */
    pageSize?: number;
  },
  options?: { [key: string]: any },
) {
  return request<API.RequestData>('/api/device/linkage/record', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 删除设备联动触发记录 DELETE /api/device/linkage/record */
export async function removeDeviceLinkageRecord(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/device/linkage/record', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}

/** 删除设备联动触发记录 */
export async function batchRemoveDeviceLinkageRecord(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/device/linkage/record/batchdel', {
    method: 'DELETE',
    params: {
      ...options,
    },
    ...(options || {}),
  });
}
